/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.basic.park.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.AdminDictEnum;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 园区规划管理
 *
 * @author pig
 * @date 2023-10-25 10:55:24
 */
@Data
@TableName("base_park_plan")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "园区规划管理")
public class BaseParkPlanEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;


	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 规划名称
	*/
    @Schema(description="规划名称")

    private String planName;

	/**
	* 规划编号
	*/
    @Schema(description="规划编号")
    private String planCode;

	/**
	* 发布单位
	*/
    @Schema(description="发布单位")
    private String publishUnit;

	/**
	* 有效日期
	*/
    @Schema(description="有效日期")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date effectiveDate;

	/**
	* 失效日期
	*/
    @Schema(description="失效日期")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date ineffectiveDate;

	/**
	* 规划简述
	*/
    @Schema(description="规划简述")
    private String planComment;

	/**
	* 规划图
	*/
    @Schema(description="规划图")
    private String planGraph;

	/**
	* 规划附件
	*/
    @Schema(description="规划附件")
    private String planAttachment;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

	public String getOrgIdStr() {
		return DictResolver.getItemLabelByValue(AdminDictEnum.sys_company,this.orgId);
	}


}
